package com.ztgf.shopping.models.dto.shop;

import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;

import com.ztgf.common.dto.BaseDTO;

/**
 * 用户购物车表DTO
 *
 * @author zhanghualang
 * @Date 2020-05-27 14:05:12
 */
@Data
@TableName("shop_shopping_cart")
@ApiModel(value="用户购物车表对象", description="用户购物车表对象")
public class ShopShoppingCartDTO extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "创建人")
    private Long createUserId;
    @ApiModelProperty(value = "更新人")
    private Long updateUserId;
    @ApiModelProperty(value = "店铺id")
    private Long shopId;
    @ApiModelProperty(value = "商品id")
    private Long commodityId;
    @ApiModelProperty(value = "加入购物车单价")
    private BigDecimal price;
    @ApiModelProperty(value = "规格ids 以逗号隔开")
    private String specificationIds;
    @ApiModelProperty(value = "商品所属店铺ID")
    private Long commodityShopId;
    @ApiModelProperty(value = "数量 默认1")
    private Integer number;
    @ApiModelProperty(value = "询盘规格型号")
    private String specificationModel;
    @ApiModelProperty(value = "购物车类型：0普通 1询盘")
    private Integer type;
    @ApiModelProperty(value = "商品报价单id")
    private Long purchaseCommodityBargainId;
    @ApiModelProperty(value = "admin添加的购物车为1，非admin为0")
    private Integer status;
}
